package com.csjbot.coshandler.handle_msg.task;

import com.csjbot.coshandler.core.Robot;
import com.csjbot.coshandler.global.RSPConstants;

/**
 * Created by jingwc on 2017/11/8.
 */

public class RbVersion extends RbBase {
    @Override
    protected void handleNTFMessage(String dataSource, String msgId) {

    }

    @Override
    protected void handleRSPMessage(String dataSource, String msgId) {
        switch (msgId){
            case RSPConstants.GET_VERSION_RSP:
                Robot.getInstance().pushVersion(getSingleField(dataSource,"version"));
                break;
        }
    }
}
